//
//  KLAVManager.m
//  KLBookStore
//
//  Created by apple on 2017/10/14.
//  Copyright © 2017年 NetEaseExam. All rights reserved.
//

#import "KLAVManager.h"

@implementation KLAVManager

static KLAVManager * instance = nil;

+ (instancetype)sharedInstance{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[KLAVManager alloc] init];
        instance.captureSession = [[AVCaptureSession alloc] init];
    });
    return instance;
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [super allocWithZone:zone];
    });
    return instance;
}



@end
